#include <interface\label.h>
#include <interface\frame.h>
#include <interface\gl.h>

label::label(): winElmt()
{
    ELname = "<label>";
}
label::label(window* win):  winElmt(win)
{
    ELname = "<label>";
}
label::~label(){}

void label::setCaption(string cpt){
    caption.setCaption(cpt);
}
string label::getCaption(){
    return caption.getCaption();
}

void label::setFont(font* ft){
    caption.setFont( ft );
}

void label::display(){
    if( !styleS ) return;
    int pOffX = 0;
    int pOffY = 0;
    getOffset(&pOffX,&pOffY);
    glColor(txtColFromSS(elm_label));
    caption.display(pOffX,pOffY);
}

unsigned char label::eventExec(unsigned char in){
    return in;
}
